package com.pureut.storage.controller;

import com.pureut.storage.dto.ImparityDto;
import com.pureut.storage.service.PublicStorageDocumentService;
import com.pureut.storage.vo.ImparityVo;
import com.sale.common.core.web.controller.BaseController;
import com.sale.common.mybatis.core.page.PageQuery;
import com.sale.common.mybatis.core.page.TableDataInfo;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * 入库多个列表查询控制层
 */

@RestController
@RequestMapping("/storage-document")
public class PublicStorageDocumentController extends BaseController {


    @Resource
    PublicStorageDocumentService publicStorageDocumentService;

    /**
     * 获取多个列表
     */
    @GetMapping("/list")
    public TableDataInfo<ImparityDto> getImparityList(ImparityVo imparityVo, PageQuery pageQuery) {
        return publicStorageDocumentService.getImparityList(imparityVo, pageQuery);
    }

    /**
     * 查询采购入库数据
     */
    @GetMapping("/getReceiptList")
    public TableDataInfo<ImparityDto> getReceiptList(ImparityVo imparityVo, PageQuery pageQuery) {
        return publicStorageDocumentService.getReceiptList(imparityVo, pageQuery);
    }
}
